package com.wa.exception;


import com.wa.pojo.BaseResponse;

/**
 * <p>Dingtalk应用异常类</p>
 * <p>Author: hugo</p>
 * <p>Version: 1.0.0</p>
 * <p>Create Date：2021/06/04</p>
 * <p>Modified By：</p>
 * <p>Modified Date:</p>
 * <p>Copyright (c) 2017 ~ 2021 Allchips版权所有</p>
 */
public class DingTalkException extends RuntimeException {
    public int code = BaseResponse.ERROR_RESULT.getResponseCode();

    public DingTalkException() {
        super();
    }

    public DingTalkException(int code) {
        super();
        this.code = code;
    }

    public DingTalkException(String message, int code) {
        super(message);
        this.code = code;
    }

    public DingTalkException(String arg0, Throwable arg1, boolean arg2, boolean arg3) {
        super(arg0, arg1, arg2, arg3);
    }

    public DingTalkException(String arg0, Throwable arg1) {
        super(arg0, arg1);
    }

    public DingTalkException(String arg0) {
        super(arg0);
    }

    public DingTalkException(Throwable arg0) {
        super(arg0);
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
